package com.example.texted.myenum;

import java.util.Arrays;
import java.util.Map;
import java.util.stream.Collectors;

public class Do {
    public static void main(String[] args) {
        final Map<String, String> gmMap = Arrays.stream(GMEnum.values()).collect(Collectors.toMap(GMEnum::toString, GMEnum::getName));
        System.out.println(gmMap);

        final GMEnum gmEnum = Enum.valueOf(GMEnum.class, "TTK");
        gmEnum.Do();
    }
}
